package com.theo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import javax.persistence.Transient;

/**
 * <p>
 * 
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Component
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EpidemicInfo对象", description="")
public class EpidemicInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "疫情数据编号")
    @TableId(value = "epidemic_id", type = IdType.AUTO)
    private Integer epidemicId;

    @ApiModelProperty(value = "城市编号")
    private String cityId;

    @ApiModelProperty(value = "日期")
    private Date date;

    @ApiModelProperty(value = "确诊人数")
    private Integer affirmed;

    @ApiModelProperty(value = "疑似人数")
    private Integer suspected;

    @ApiModelProperty(value = "死亡人数")
    private Integer dead;

    @ApiModelProperty(value = "治愈人数")
    private Integer cured;

    @ApiModelProperty(value = "无症状人数")
    private Integer symptomless;

    @ApiModelProperty(value = "境外输入人数")
    private Integer overseasInput;

    @ApiModelProperty(value = "城市名称")
    @TableField(exist = false)
    private String cityName;


}
